home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3460 < prev    next >
Encoding:
Text File  |  1996-08-05  |  806 b   |  25 lines

  1. Newsgroups: comp.unix.shell,comp.lang.c
  2. Path: news.dcs.warwick.ac.uk!not-for-mail
  3. From: A.Main@dcs.warwick.ac.uk (Zefram)
  4. Subject: Re: slowing it down
  5. X-Nntp-Posting-Host: stone
  6. Message-ID: <1996Jan29.044151.2763@dcs.warwick.ac.uk>
  7. Sender: news@dcs.warwick.ac.uk (Network News)
  8. Organization: Department of Computer Science, Warwick University, England
  9. References: <4ebh99$5q9@monmouth.edu>
  10. Date: Mon, 29 Jan 1996 04:41:51 GMT
  11.  
  12. RAJIV RODRIGUES <s0213031@moncol.monmouth.edu> wrote:
  13. >I ran a simple 'cat' on a DEC ALPHA (Digital Unix) to display a long (!) file.
  14. >I'm looking for some way to slow down ( not a pager ) the listing, so that
  15. >it scrolls at a comfortable speed. I tried a 'nice' at lowest priority with
  16. >no discernable effect.
  17.  
  18. #!/bin/sh
  19. while read foo; do
  20.   echo "$foo"
  21.   sleep 1
  22. done
  23.  
  24. -zefram
  25.